package com.atguigu.gulimall.search.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: gulimall
 * @description: 商品
 * @author: liuxvru
 * @create: 2024-02-19 17:30
 **/
@FeignClient("gulimall-product")
public interface ProductFeifnService {
    @RequestMapping("/product/skuinfo/info/{skuId}")
        //@RequiresPermissions("product:skuinfo:info")
    R infoSkuinfo(@PathVariable("skuId") Long skuId);

    @RequestMapping("/product/attr/info/{attrId}")
        //@RequiresPermissions("product:skuinfo:info")
    R getAttrInfo(@PathVariable("attrId") Long attrId);
}
